package com.zsc.shixun.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 收藏中间表
 * </p>
 *
 * @author ZWYZY
 * @since 2020-06-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("b_collect_article")
@ApiModel(value = "CollectArticle对象", description = "收藏中间表")
public class CollectArticle implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "收藏夹id,关联collect_categories.id")
    private Long collectArticleId;

    @ApiModelProperty(value = "文章id,关联article.id")
    private Long articleId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//数据库导出页面时json格式化
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//数据库导出页面时json格式化
    private Date updateTime;


}
